package com.crb.crm.manage.entity.biz;

import com.crb.crm.manage.enums.OssType;
import com.crb.crm.manage.pojo.biz.UploadRecord;

import java.util.Objects;

/**
 * Package: com.crb.crm.manage.entity.biz
 * Description：
 * Author: huangjian
 * Date:  2020/9/7 15:21
 * Modified By:
 *
 * @author huangjian
 */
public class UploadRecordDTO extends UploadRecord {

    public String getOssTypeName() {
        OssType ossType = OssType.valueOf(getOssType());
        if (Objects.isNull(ossType)) {
            return "未知";
        }
        return OssType.valueOf(getOssType()).getDesc();
    }
}